import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SPloughCopyInfo

export class SPloughCopyInfo extends IMessageBase {
  constructor(arg1: Boolean = false) {
    
    super();if (arg1) {
      MessageManager.instance().regist(this);
    }
    return;
  }

  public /* override */ getType(): int {
    return this._type;
  }

  public /* override */ clone(): IMessageBase {
    return new SPloughCopyInfo();
  }

  public /* override */ __write(arg1: SerializeStream): void {
    arg1.writeInt(this.killBossNum);
    arg1.writeInt(this.totalBossNum);
    arg1.writeInt(this.floor);
    arg1.writeInt(this.finished);
    arg1.writeInt(this.leftTime);
    arg1.writeInt(this.useTime);
    return;
  }

  public /* override */ __read(arg1: SerializeStream): void {
    this.killBossNum = arg1.readInt();
    this.totalBossNum = arg1.readInt();
    this.floor = arg1.readInt();
    this.finished = arg1.readInt();
    this.leftTime = arg1.readInt();
    this.useTime = arg1.readInt();
    return;
  }

  public /* const */ _type: int = 2041;

  public /* var */ killBossNum!: int;

  public /* var */ totalBossNum!: int;

  public /* var */ floor!: int;

  public /* var */ finished!: int;

  public /* var */ leftTime!: int;

  public /* var */ useTime!: int;

  public static /* var */ _regist: SPloughCopyInfo = new SPloughCopyInfo(true);
}
